const appRouter = require('../../core/router')
const query = require('../../mysql/pool')

appRouter.get('/v1/appinfo', async ctx => {
    const result = await query(`select * from data_user`)
    console.log(Array.from(result))
    ctx.body = {
        state: 200,
        message: '查询成功',
        data: result
    }
})

module.exports = appRouter